<?php

/**
 * GestorRegistraGasto form.
 *
 * @package    programaTio
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfPropelFormTemplate.php 10377 2008-07-21 07:10:32Z dwhittle $
 */
class GestorRegistraGastoForm extends BaseGestorRegistraGastoForm
{
  public function configure()
  {
  	
  	//obtengo el request del contexto
$request = sfContext::getInstance()->getRequest();
// y lo seteo
$this->getObject()->setGestorId($request->getParameter('gestor_id1')); 
  // get Contact model object  
   /*  $gestor = $this->getObject()->getGestor();  
   
     // contact object is null  
     if (is_null($gestor)) {  
   
         // create a new Contact object  
         $gestor= new Gestor();  
   
         // set the copmany of the newly created object to the current company  
         $gestor->addGestorRegistraGasto($this->getObject());  
   
         // set the contact of the current company  
         $this->getObject()->setGestor($gestor);  
   
     }  
   
     // create a new contact form  
     $gestor_form = new GestorForm($gestor);  
   
     // embed the contact form in the current company form  
     $this->embedForm('gestor', $gestor_form);  
     
     // get Contact model object  
     $pedido = $this->getObject()->getPedido();  
   
     // contact object is null  
     if (is_null($pedido)) {  
   
         // create a new Contact object  
         $pedido= new Pedido();  
   
         // set the copmany of the newly created object to the current company  
         $pedido->addGestorRegistraGasto($this->getObject());  
   
         // set the contact of the current company  
         $this->getObject()->setPedido($pedido);  
   
     }  
   
     // create a new contact form  
     $pedido_form = new PedidoForm($pedido);  
   
     // embed the contact form in the current company form  
     $this->embedForm('pedido', $pedido_form); */
   
 
}
}